<?php
class App_View_Helper_L extends Zend_View_Helper_Url
{
    /**
     * Generates an url given the name of a route.
     *
     * @access public
     *
     * @param  array $urlOptions Options passed to the assemble method of the Route object.
     * @param  mixed $name The name of a Route to use. If null it will use the current Route
     * @param  bool $reset Whether or not to reset the route defaults with those provided
     * @return string Url for the link href attribute.
     */
    public function L($controller = null, $action = null, $params = array(), $module = null)
    {
        $p = array(
            'controller' => $controller,
            'action' => $action,
            'module' => $module,
        );
        return $this->url(array_merge($p, $params), null, true);
    }
}